package com.note.simpleshop.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 作者： xubingbing
 * 描述：接口返回的数据类型
 * 创建日期：2017年10月18日
 */
@ApiModel(description= "返回响应数据")
public class Msg<T> implements Serializable {
    @ApiModelProperty(value = "errorCode错误码,0正常100000校验错误100001系统异常",notes = "号码")
    private String errorCode="";
    @ApiModelProperty(value = "提示信息")
    private String msg="";
    @ApiModelProperty(value = "返回数据类型")
    private T data;
    public Msg(String errorCode, String msg, T data) {
        super();
        this.errorCode = errorCode;
        this.msg = msg;
        this.data = data;
    }
    public Msg() {

    }
    public Msg(String errorCode, String msg) {
        super();
        this.errorCode = errorCode;
        this.msg = msg;
    }
    public String getErrorCode()
    {
        return errorCode;
    }
    public void setErrorCode(String errorCode)
    {
        this.errorCode = errorCode;
    }
    public String getMsg()
    {
        return msg;
    }
    public void setMsg(String msg)
    {
        this.msg = msg;
    }
    public T getData()
    {
        return data;
    }
    public void setData(T data)
    {
        this.data = data;
    }
}
